package com.visionblue.business.ship.page.dialog

import android.app.Activity
import android.app.Dialog
import android.content.Context
import android.widget.Toast
import com.visionblue.business.ship.R
import com.visionblue.business.ship.page.MainActivity
import com.visionblue.business.ship.page.register.RegisterActivity
import com.visionblue.business.ship.page.register.config.PackageInfoGet
import com.visionblue.business.ship.util.toast
import kotlinx.android.synthetic.main.dialog_not_registry.*

/**
 * @author: xlh
 * @date: 2020-06-07 8:51 PM
 * @desc:
 */
class NotRegistryMaskDialog(context: Activity) : Dialog(context, R.style.blurry_slide_dialog) {

    init {
        setContentView(R.layout.dialog_not_registry)

        //tv_version.text = PackageInfoGet.versionCode.toString()+""

        //查看版本
        tv_check_version.setOnClickListener{
            toast { "V" + PackageInfoGet.getAppVersionName(context) }
        }

        tvRegister.setOnClickListener {
            RegisterActivity.start(context, MainActivity.CODE_REGISTER)
            dismiss()
        }
    }
}